<?php

declare(strict_types=1);

namespace App\Entities;

use Illuminate\Database\Eloquent\Model;

class OrderReportModel extends Model
{
    public const STATE_INIT   = 0;  // 待操作
    public const STATE_AGREE  = 1;  // 后台审核通过
    public const STATE_REJECT = 2;  // 后台审核驳回
    public const STATE_CANCEL = 3;  // 保洁员撤回
    protected $table          = 'order_report';

    // 报备原因：客户要求改期
    public const CHANGE_SERVICE_DATE_REASON_ID = 1;

    /**
     * 报备条件
     * @var array
     */
    public const REASON = [
        [
            'id' => 1,
            'reason' => '客户要求改期',
        ],
        [
            'id' => 2,
            'reason' => '不具备服务条件（无法拆卸、停水停电等）',
        ],
        [
            'id' => 3,
            'reason' => '无法联系客户',
        ],
        [
            'id' => 4,
            'reason' => '距离太远，无法上门',
        ],
    ];
}
